import ApiService from "@/core/services/ApiService";

export default {
  getCourseList(params) {
    return ApiService.get(`/course/showCourses`, {
      params: params,
    });
  },
  chooseCourse(params) {
    return ApiService.post(`/course/choose`, params);
  },
  exitCourse(params) {
    return ApiService.post(`/course/drop`, params);
  },
  addCourse(params) {
    return ApiService.post(`/course/add`, params);
  },
  editCourse(params) {
    return ApiService.post(`/course/updateCourse`, params);
  },
  deleteCourse(params) {
    return ApiService.delete(`/course/delete`, {
      params: params,
    });
  },
};
